import load

nameList={}

for i in range(2,23052):
    name=load.getCell(i, load.Name)
    l=len(name)
    name=name[l-2:l]
    if name in nameList.keys():
        nameList[name]+=1
    else:
        nameList[name]=1

con=''
for i,j in nameList.items():
    con+=i+','+str(j)+'\n'

load.writeFile('火热的名字2.csv',con)